package cn.gqr.service;

import cn.gqr.dao.UserDao;
import cn.gqr.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    UserDao ud;

    @Override
    public User findById(String id) {
        return ud.findById(id);
    }

    @Override
    public User addUser(User u) {
        return ud.addUser(u);
    }


    @Override
    public boolean upUser(User u) {
        return ud.upUser(u);
    }
}
